package cn.sumpu.app.guoguojie.dao;

import java.util.List;
import java.util.Map;
import cn.sumpu.app.guoguojie.domain.CmsChannel;
import cn.sumpu.app.guoguojie.exception.AppBusinessException;

public interface CmsChannelDao {
	
    /**
     * author BruceZhang
     * @param map   parent 父ID
     * @return  根据父ID取得子节点的树结构
     * @throws AppBusinessException
     */
    List<CmsChannel> getChildById(Map<String, Object> map)throws AppBusinessException;
	//添加频道
	void addCmsChannel(CmsChannel cmsChannel)throws AppBusinessException;
	//取得频道列表
	List<CmsChannel> getChannelList(Map<String, Object> map)throws AppBusinessException;
	//取得频道列表
	CmsChannel getChannelById(String channelId)throws AppBusinessException;
	//删除频道
	void deleteChannel(Map<String, Object> map)throws AppBusinessException;
	//更新频道
	void updateChannelById(CmsChannel cmsChannel)throws AppBusinessException;
	
}
